import { mock, Random } from 'mockjs'

const userConfig = [
    {
        url: '/api/user',
        method: "get",
        render: config => {
            return mock({
                code: 200,
                'data|10': [{
                    'id|+1': 1,
                    'name': '@cname',
                    'age': '@natural(16, 80)',
                    'address': '@county(true)',
                    "tags": () => ['nice', 'developer', 'loser', 'cool', 'teacher'].filter(() => Math.random() - 0.5 > 0)
                }]
            })
        }
    }
]

export default userConfig

